package com.suning.app.snpaasadmin.operation;

import org.apache.ibatis.session.SqlSession;

import com.suning.app.snpaasadmin.dao.CfAppMapper;
import com.suning.app.snpaasadmin.pojo.CfApp;

public class CfAppDBOperation {
	public CfApp getCfApp(int id) {
		SqlSession sqlSession = FactoryBase.getSession().openSession();
		CfAppMapper appMapper = sqlSession.getMapper(CfAppMapper.class);
		
		CfApp app = appMapper.selectByPrimaryKey(id);
		
		sqlSession.close();
		
		return app;
	}

}
